package com.service.product.service.impl;

import com.service.product.Product;
import com.service.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {

    /**
     * 创建产品
     * @return
     */
    @Override
    public Product createProduct() {
        Product product = new Product();
        product.setId(1l);
        product.setPrice(new BigDecimal(100));
        product.setProductName("小米17");
        product.setNum(5);
        return product;
    }
}
